package com.ai_chat.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;


public class Qa implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 问答记录主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 0为提问，1为回答
     */
    private Boolean qFlag;

    /**
     * 问答内容
     */
    private String content;

    /**
     * topic外键id
     */
    private Integer topicId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Boolean getqFlag() {
        return qFlag;
    }

    public void setqFlag(Boolean qFlag) {
        this.qFlag = qFlag;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getTopicId() {
        return topicId;
    }

    public void setTopicId(Integer topicId) {
        this.topicId = topicId;
    }

    @Override
    public String toString() {
        return "Qa{" +
            "id = " + id +
            ", qFlag = " + qFlag +
            ", content = " + content +
            ", topicId = " + topicId +
        "}";
    }
}
